package com.xbongbong.pro.product.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.pojo.dto.SaasFormSaveDTO;
import com.xbongbong.saas.domain.entity.BatchFlowBillUpdateEntity;
import com.xbongbong.saas.domain.entity.InstockProductEntity;
import com.xbongbong.saas.domain.entity.OutstockProductEntity;
import com.xbongbong.saas.domain.entity.StockFlowBillUpdateEntity;
import com.xbongbong.saas.domain.entity.ext.InstockEntityExt;
import com.xbongbong.saas.domain.entity.ext.OutstockEntityExt;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * @author jiping.yang
 * @date 2021/12/2 17:07
 */
@Getter
@Setter
@ToString
public class CostRecalculationDTO implements Serializable {
    private static final long serialVersionUID = 3431648821603438980L;
    /**
     * 公司ID
     */
    private String corpid;
    /**
     * 新增单据信息
     */
    private JSONObject data;
    /**
     * 单据类型
     */
    private Integer type;
    /**
     * 1 新增；2 删除；3 结账
     */
    private Integer mark;
    /**
     * 是否是工作流，0 是；1 不是
     */
    private Integer isWorkFlow = 0;
    /**
     *出库单集合
     */
    private List<OutstockEntityExt> outstockList;
    /**
     *入库单集合
     */
    private List<InstockEntityExt> instockList;
    /**
     *单据ID(新增用)
     */
    private Long stockId;
    /**
     *单据ID集合(删除用)
     */
    private List<Long> stockIdIn;
    /**
     *出库单关联产品集合
     */
    private List<OutstockProductEntity> outstockProductList;
    /**
     *入库单关联产品集合
     */
    private List<InstockProductEntity> instockProductList;
    /**
     *流水生成信息
     */
    private SaasFormSaveDTO saasFormSaveDTO;
    /**
     *批次信息
     */
    private List<Long> batchOutStockIdIn;
    /**
     *流水更新信息
     */
    private List<StockFlowBillUpdateEntity> stockFlowBillUpdateList;
    /**
     *批次更新信息
     */
    private List<BatchFlowBillUpdateEntity> batchFlowBillUpdateEntityList;

}
